package com.ywu.config.center.standard.data;

import com.ywu.config.center.standard.dto.ConfigCenterDto;
import com.ywu.config.center.standard.entity.ConfigCenterEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ConfigCenterRepository {
    Integer getConfigInfoCount(@Param("model") ConfigCenterDto configCenterDto);

    List<ConfigCenterEntity> getConfigInfo(@Param("model") ConfigCenterDto configCenterDto);

    void addConfigInfo(@Param("model") ConfigCenterEntity configCenterEntity);

    void updateConfigInfo(@Param("model") ConfigCenterEntity configCenterEntity);

    void deleteConfigInfo(@Param("model") ConfigCenterDto configCenterDto);

    ConfigCenterEntity checkConfigInfo(@Param("model") ConfigCenterDto configCenterDto);
}
